/**************************************************************************
***************************************************************************
	GameTimer.h

	The game timer class is responsible for managing our frame rate and
	ensuring that the game will be ran at a constant playable speed on 
	various machines.
***************************************************************************
***************************************************************************/
#pragma once

#include <time.h>
#include <windows.h>

class GameTimer
{
private:
	bool isEnabled;
	clock_t starttime;
	clock_t elapsed;

public:
	GameTimer( );
	~GameTimer( );
	bool getEnabled( );
	int getMSElapsed( );
	int getSecElapsed( );
	void restart( );
	void start( );
	void stop( );
	void waitMS( int milliseconds );
	void waitSec( int seconds );
};